-- GENERATED SPELL FOR [Mechanized Guardian] --


function spell0_6234(pUnit, Event) --@Electrified Net,n/a--
pUnit:FullCastSpellOnTarget(11820,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6234', 6500, 1)
end

function Sorts_6234(pUnit, Event)
local choix_sorts_6234 = math.random(0, 0)
if choix_sorts_6234 == 0 then
pUnit:RegisterEvent('spell0_6234', 1, 1)
end
end

function mob6234_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6234', math.random(1500, 3000), 1)
end

function mob6234_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6234_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6234_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6234, 1, 'mob6234_Action')
RegisterUnitEvent(6234, 2, 'mob6234_Leave')
RegisterUnitEvent(6234, 3, 'mob6234_Kill')
RegisterUnitEvent(6234, 4, 'mob6234_Die')
